<template>
  <div id="app">
    <Header></Header>
    <router-view></router-view>
    <!-- <router-link to="/home"></router-link> -->
    <Footer v-show="!$route.meta.isHiddle"></Footer>
  </div>
</template>
<script>
import Header from "@/components/Header";
import Footer from "@/components/Footer";
export default {
  name: "App",
  components: {
    Header,
    Footer,
  },

  mounted() {
    //这里发请求获取不变数据，
    this.$store.dispatch("getCategoryList");
    
  },

};
</script>
